package com.ruoyi.sys.personnel.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 *  人员管理/门禁设备管理/设置日志
 */
@Data
@TableName("tb_entrance_log")
public class TbEntranceLog {
    @TableId(value = "el_id",type = IdType.AUTO)
    private Integer elId;
    @TableField("el_name")
    private String elName;
    @TableField("el_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date elDate;
    @TableField("eg_id")
    private Integer egId;
    @TableField("el_text")
    private String elText;

    private TbEntranceGuard tbeg;
}
